package com.lg.desireplayer.bandlist;

import java.util.ArrayList;

import android.annotation.SuppressLint;

public class MyList {
	@SuppressLint("UseSparseArrays")
	private static final ArrayList<Band> myList = new ArrayList<Band>();
	
	public static void insertBand(int id, String name, String title,String descr, String image, String media, String link, int likecnt) {
		Band band = new Band();
		band.setId(id);
		band.setName(name);
		band.setTitle(title);
		band.setDescr(descr);
		band.setImage(image);
		band.setMedia(media);
		band.setLink(link);
		band.setLikecnt(likecnt);
		
		myList.add(band);
	}
	public static void clearList() {
		myList.clear();
	}
	public static Band retrieveBand(int id) {
		return myList.get(id);
	}
	
	public static int getSize() {
		return myList.size();
	}
	
	public static ArrayList<Band> BandList() {
		return myList;
	}
}
